<template>
  <p-table
    :columns="columns"
    :dataSource="tableData"
    :pagination="false"
    size="middle"
    row-key="id"
    bordered
  />
</template>

<script>
import mixins from './list-mixins'

export default {
  mixins: [mixins],
  data() {
    return {
      columns: [
        {
          title: '序号',
          dataIndex: 'rowIndex',
          align: 'center',
          width: 60,
          customRender(text, record, index) {
            return index + 1
          }
        },
        {
          title: 'PN',
          dataIndex: 'pnNo',
          align: 'center',
        },
        {
          title: 'SN',
          dataIndex: 'snNo',
          align: 'center',
        },
        {
          title: '数量',
          dataIndex: 'quantity',
          align: 'center',
        },
        {
          title: '加工时间',
          dataIndex: 'processingTime',
          align: 'center',
        },
        {
          title: '加工人员',
          dataIndex: 'processingWorker',
          align: 'center',
        }
      ]
    }
  },
  created() {
    this.url = '/mes-manufacture/mfStartWork/getProcessHistory'
  },
}
</script>
